<?php

namespace frontend\controllers;

class IndexController extends \yii\web\Controller
{
    public function actionIndex()
    {
        $people = [
            ['name' => '曹操', 'saying' => '宁教我负天下人，不教天下人负我'],
            ['name' => '刘备', 'saying' => '备若有基业，天下碌碌之辈，诚不足虑也。'],
            ['name' => '关羽', 'saying' => '此等小辈，如同土鸡瓦狗，插标卖首尔'],
            ['name' => '张飞', 'saying' => '我乃燕人张翼德，谁敢与我决一死战'],
        ];
        return $this->render('index', ['people' => $people]);
    }

}
